//@ts-nocheck   strange type error here...

export class RoomObjectExtension extends RoomObject {
    targetedBy_get(): Creep[] {
        if (('id' in this) && typeof this.id === 'string' && Game.targetingData) {
            return Game.targetingData[this.id] ?? [];
        }
        else {
            return [];
        }
    }
}